import myaxios from '../myAxios.js'
// httpApi 对象封装所有的接口方法
import baseURL from "../baseUrl"
const BMDURL = baseURL.BMDURL
const actorApi = {
    // 删除演员
    delete(params){
        let url = BMDURL+'/movie-actor/del'
        return myaxios.post(url,params)
    },
    // 新增演员信息
    addActor(params){
        let url = BMDURL+"/movie-actor/add"
        return myaxios.post(url,params)
    },
    // 关键字模糊查询演员
    queryActorsByName(params){
        let url = BMDURL+"/movie-actors/name"
        return myaxios.post(url,params)
    },
    // 查询演员列表
    queryAllActors(){
        let url = BMDURL+'/movie-actors'
        let params = {page:1,pagesize:100}
        return myaxios.get(url,params)
    },
}
export default actorApi